package com.hdax.dm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hdax.dm.dto.*;
import com.hdax.dm.item.Item;
import com.hdax.dm.scheduler.DmScheduler;
import com.hdax.dm.scheduler.DmSchedulerSeatPrice;
import com.hdax.dm.utils.response.CommonResponse;
import com.hdax.dm.vo.ItemSearchVo;

import java.io.IOException;
import java.util.List;

public interface ItemService extends IService<Item> {
    //热门商品
    List<IndexNavDto.HotItems> hotItems(Long itemType1Id, Long isBanner);

    //今日推荐
    CommonResponse<List<IndexNavDto.HotItems>> recommend();
    //即将开售
    CommonResponse<List<IndexNavDto.HotItems>> sellItems();

    //楼层
    CommonResponse<List<IndexFloorDto>> Floors();

    //分类排行
    CommonResponse<List<IndexFloorDto.FloorItems>> senioritys(Long itemTypeId);

    CommonResponse<ItemsDto> itemsId(Long id);
    List<Item> itemId(Long itemid);

    ItemSearchResultDto querygoodsinfos(ItemSearchVo vo) throws IOException;

    //排期时间
    CommonResponse<List<DmScheduler>> getTimePlan(String itemId);

    //根据排期id获取价格
    CommonResponse<List<SchedulerPeiceDto>> getPrice(String schedulerId);
}
